﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true"
    CodeBehind="Editar.aspx.cs" Inherits="Locadora.Views.Filme.Editar" %>
<%@ Import Namespace="System.Web.Mvc.Html" %>
<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Editar Filme</h2>
    <div class="corpo">
        <div class="notes">
            <h4>
                Informações</h4>
            <p>
                Please enter your full email address, for example, <strong>name@domain.com</strong></p>
            <p>
                It is important that you provide a valid, working email address that you have access
                to as it must be verified before you can use your account.</p>
            <p>
                Please enter a land line number, not a mobile phone number.</p>
            <p class="last">
                Your phone number will not be shared or used for telemarketing. Your information
                is protected by our <a title="View our Privacy Policy" href="http://jeffhowden.com/legal/privacy_policy/">
                    Privacy Policy</a>.</p>
        </div>
        <form action="/Filme/Edit/<%= ViewData["Id"] %>">
        <% if (ViewData["ErrorMessage"] != null)
           { %>
           <p class=erro>
        Ocorreu um erro:
        <br />
        <%= ViewData["ErrorMessage"] %>
        </p>
        <br />
        <% } %>
        <table>
            <tr>
                <td>
                    Título:
                </td>
            
                <td>
                    <input type="text" name="titulo" value="<%= ViewData["Titulo"] %>" />
                </td>
            </tr>
            <tr>
                <td>
                    Ator:
                </td>
           
                <td>
                    <input type="text" name="ator" value="<%= ViewData["Ator"] %>" />
                </td>
            </tr>
            <tr>
                <td>
                    Diretor:
                </td>
            
                <td>
                    <input type="text" name="diretor" value="<%= ViewData["Diretor"] %>" />
                </td>
            </tr>
            <tr>
                <td>
                    Duração:
                </td>
           
                <td>
                    <input type="text" name="duracao" value="<%= ViewData["Duracao"] %>" />
                </td>
            </tr>
            <tr>
                <td>
                    Nota:
                </td>
            
                <td>
                    <input type="text" name="nota" value="<%= ViewData["Nota"] %>" />
                </td>
            </tr>
            <tr>
                <td>
                    Tipo Mídia:
                </td>
                
                <td>
                    <%= Html.DropDownList("Tipo", (System.Web.Mvc.SelectList)ViewData["Tipo"], new { style="width:270px;" })%>
                </td>
            </tr>
             <tr>
                <td>
                    Gênero:
                </td>
                <td>
                    <%= Html.DropDownList("Genero", (System.Web.Mvc.SelectList)ViewData["Genero"], new { style="width:270px;" })%>
                </td>
            </tr>
            <tr>
                <td colspan=2>
                    <input type="submit" value="Salvar" />
                </td>
            </tr>
        </table>
        </form>
    </div>
</asp:Content>
